<template>
  <div class="center">
    <div class="centerHeader">
      <div class="headerItem myImg">
        <div class="imgBox"><img :src="$store.state.login.imgUrl" alt="" /></div>
        <span>{{$store.state.login.nickname}}，你好！</span>
        <div></div>
      </div>
      <div class="headerItem order">
        <div><i class="iconfont icon-dingdanjihe"></i></div>
        订单管理
      </div>
      <div class="headerItem mine">
        <div><i class="iconfont icon-denglu-copy"></i></div>
        我的账户
      </div>
      <div class="headerItem conversation">
        <div><i class="iconfont icon-duihua"></i></div>
        咨询
      </div>
    </div>
    <div class="centerBody">
      <h1>全部订单</h1>
      <div class="CBT orderItem">
        <div class="orderImg">订单款式</div>
        <div class="orderTitle">商品名称</div>
        <div class="orderData">订单完成时间</div>
        <div class="orderState">订单状态</div>
      </div>
      <div class="orderItem">
        <div class="orderImg"><img src="./images/goods1.webp" /></div>
        <div class="orderTitle">
          女装 柔软磨毛衬衫长袖半开领衬衣 空调薄外套女装毛绒翻领棉服
        </div>
        <div class="orderData">2022-09-09
        </div>
        <div class="orderState">已完成</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.center {
  width: 90%;
  margin: 0 auto;
}
.centerHeader {
  display: flex;
  justify-content: space-between;
  padding-top: 110px;
  margin-left: 10px;
  .myImg {
    width: 25%;
    .imgBox {
      width: 125px;
      height: 125px;
      margin: 0;
      overflow: hidden;
      border-radius: 50%;
      img {
        width: 100%;
      }
      
    }
    span{
      font-weight: bold;
      font-size: 1.2em;
    }
  }
  .order,.mine, .conversation{
    width: 25%;
    text-align: center;
  }
  .headerItem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 44px;
    font-size: 16px;
    i{
      font-size: 44px;
    }
  }
}
.centerBody{
  margin-top: 30px;
  border-top:1px dashed rgb(182, 181, 181);
  h1{
    margin-top: 50px;
  }
  .CBT{
    line-height: 32px;
    color:#fff;
    background-color: rgb(56, 34, 34);
  }
  .orderItem {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    .orderImg {
      width: 20%;
      img {
        width: 90%;
      }
    }
    .orderTitle {
      width: 50%;
    }
    .orderData {
      width: 20%;
    }
    .orderState {
      width: 40%;
    }
  }
}

</style>
